package cn.kgc.spring07.mapper.impl;

import cn.kgc.spring07.mapper.UserMapper;

/**
 * @author: mosin
 * @version: v1.0  2022/12/5
 */
public class UserMapperImpl implements UserMapper {

    @Override
    public Integer delete(Integer id) {
        System.out.println("delete from user where id = "+id);
        return 1;
    }

    @Override
    public Integer add() {
        System.out.println("insert into user(username,password)values(tom,123456)");
        return 1;
    }

    @Override
    public Integer update() {

        System.out.println("update user set username = ? where id = 1");
        return 1;
    }
}
